package cn.yudao.basic.utils;

import lombok.Data;

@Data
public class AjaxResult {

    private Boolean success = true;

    private String message = "操作成功";
    // 提供一个方法获得对象
    public static AjaxResult me(){
        return new AjaxResult();
    }


    // 自定义set
    public AjaxResult setSuccess(Boolean success) {
        this.success = success;
        return this;
    }
    // 自定义set
    public AjaxResult setMessage(String message) {
        this.message = message;
        return this;
    }
}
